package com.example.demo.dao;

import com.example.demo.model.ArticleVisitRecordModel;
import com.example.demo.model.ArticleVisitTotalModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleVisitTotalDao {

    /**
     * 更新今日的文章访问量数据
     * @param list
     * @return
     */
    int updateTodayVisitTotal(List list);


    // 获取未进行汇总的数据的统计集合（根据文章分组）
    List<ArticleVisitTotalModel> getNotTotalDataGroupArticleList(ArticleVisitRecordModel articleVisitRecordModel);

    List<ArticleVisitTotalModel> getListByArticleIds(String articleIds);

    boolean updatePvById(ArticleVisitTotalModel articleVisitTotalModel);

    boolean add(ArticleVisitTotalModel articleVisitTotalModel);

}
